package com.wenguo;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

import com.wenguo.common.util.ConfigLoader;
import com.wenguo.common.util.DBLoader;

public class StartAction extends HttpServlet {

	private static final long serialVersionUID = -3055126506995036315L;

	private final static Logger logger = Logger.getLogger(StartAction.class);

	public void init() throws ServletException {
		try {
			logger.info("<START>Servlet Initialization</START>");
			ConfigLoader.getInstance().load();
			DBLoader.getInstance().load();
			logger.info("<OVER>Servlet Over</OVER>");
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			throw new RuntimeException(e);
		}
	}
}
